import { request, HttpMethod, restartTimes, RequestConfig } from './request'

export function getPatientBaseObject(data: object | null) {
  const config = <RequestConfig>{
    url: '/patient/patientBase/getByPatientBaseObject',
    method: HttpMethod.POST,
    data: data,
  }
  return request(config);
}

export function modPatientBaseObject(data: object | null) {
  const config = <RequestConfig>{
    url: '/patient/patientBase/update_patient_base',
    method: HttpMethod.POST,
    data: data,
  }
  return request(config);
}